package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    @RequestMapping("/v1/user/login")
    @ResponseBody
    public String login(String username,String password ){
        System.out.println("进入登录界面");
        System.out.println("用户登录："+username+","+password);
        return "恭喜你，登录成功";
    }
    @RequestMapping("/v1/user/del")
    @ResponseBody
    public String del (){
        return "删除订单";
    }
    @RequestMapping("/v1/user/list")
    @ResponseBody
    public String lsit(){
        return "列表成功";
    }
    @RequestMapping("/v1/user/update")
    @ResponseBody
    public String update(){
        return "更新成功";
    }


}
